-- GENERATED SPELL FOR [Shattered Hand Brawler] --


function spell0_16593(pUnit, Event) --@Curse of the Shattered Hand,n/a--
pUnit:FullCastSpellOnTarget(36020,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16593', 640, 1)
end

function spell1_16593(pUnit, Event) --@Kick,n/a--
pUnit:FullCastSpellOnTarget(36033,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16593', 6256, 1)
end

function spell2_16593(pUnit, Event) --@Thrash,Self--
pUnit:FullCastSpellOnTarget(3391,pUnit)
pUnit:RegisterEvent('Sorts_16593', 535, 1)
end

function Sorts_16593(pUnit, Event)
local choix_sorts_16593 = math.random(0, 2)
if choix_sorts_16593 == 0 then
pUnit:RegisterEvent('spell0_16593', 1, 1)
end
if choix_sorts_16593 == 1 then
pUnit:RegisterEvent('spell1_16593', 1, 1)
end
if choix_sorts_16593 == 2 then
pUnit:RegisterEvent('spell2_16593', 1, 1)
end
end

function mob16593_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16593', math.random(1500, 3000), 1)
end

function mob16593_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16593_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16593_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16593, 1, 'mob16593_Action')
RegisterUnitEvent(16593, 2, 'mob16593_Leave')
RegisterUnitEvent(16593, 3, 'mob16593_Kill')
RegisterUnitEvent(16593, 4, 'mob16593_Die')
